﻿using mscook.core.domain;
using mscook.core.repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mscook.core.services
{
    public class AboutUsService : BaseService<AboutUs>, IAboutUsService
    {
        private IAboutUsRepository AboutUsRepository;

        public AboutUsService(IAboutUsRepository iAboutUsRepository)
            : base(iAboutUsRepository)
        {
            this.AboutUsRepository = iAboutUsRepository;
        }

        public IList<AboutUs> SelectShowOnHomePage(int size)
        {
            return AboutUsRepository.SelectShowOnHomePageOrdeyBySort(size);
        }
    }
}
